<template>
  <div>
    <div>下面input框中的值是：{{ val }}</div>
    <myinput @tellfather="getval"></myinput>
  </div>
</template>
<script>
import myinput from "./components/myinput.vue";
export default {
  components: {
    myinput,
  },
  data() {
    return {
      val: "",
    };
  },
  methods: {
    getval(v) {
      console.log(v);
      this.val = v;
    },
  },
};
</script>
<style lang="less">
</style>